XX = g++
CXXFLAGS = -g -Wall
TARGET = ./pblite

%o:%.cpp %.c %.h
	$(XX) $(CXXFLAGS) -c $< -o $@

SOURCES = $(wildcard *.cpp *.c)
OBJS =$(patsubst %.c,%.o,$(patsubst %.cpp,%.o,$(SOURCES)))

$(TARGET):$(OBJS)
	$(XX) $(CXXFLAGS) $(OBJS) -o $(TARGET)
	mv *.o ../objs
	mv pblite ..
